#pragma once
#include "NodeServer.h"
#include "ObjPtrList.h"
#include "MLProtocol.h"
#include "ClientPlayerList.h"
#include "ProductList.h"

class CLobbyServer : public CNodeServer, public CClientPlayerList
{
	enum
	{
		Timer_Syn_ProductList = 1, 
	};
public:
	CLobbyServer(void);
	~CLobbyServer(void);

	virtual BOOL OnInitialUpdate();
	virtual CPlayer *CreatePlayer(int nOrigin);
	virtual CServerPlayer *CreateServerPlayer(int nOrigin, int nServerId);
	virtual void OnTimer(UINT nTimerId);
public:
	void TimerSynProductList();
};


extern CObjPtrList<CProductList> g_listProductList;
extern CLobbyServer *g_pLobbyServer;